import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import headRouter from "./headRouter"
import Activity from "../views/Activity"
import Brochure from "../views/Brochure"
import Hot from "../views/Hot"
import Topic from "../views/Topic"
import Main from "../views/Main"
Vue.use(VueRouter)

export const routes = [
  {
    path: '/',
    name: '主页',
    component: Home,
    children:headRouter
  },
  // {
  //   path:'/',
  //   redirect:'/recommend'
  // },
  // {
  //   path: '/main',
  //   name: '首页',
  //   component: Main
  // },
  {
    path: '/hot',
    name: '沸点',
    component: Hot,
  },
  {
    path: '/topic',
    name: '话题',
    component: Topic,
  },
  {
    path: '/brochure',
    name: '小册',
    component: Brochure,
  },
  {
    path:'/activity',
    name:'活动',
    component:Activity
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
